<template>
  <div class="card">
    <div class="title">{{ title }}</div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.card {
  width: 98%;
  // height: 100%;
  margin: 8px auto;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0px 4px 7px 0px rgba(0, 20, 45, 0.13);
  .title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 35px;
    padding: 0px 10px;
    text-align: left;
    border-radius: 7px 7px 0px 0px;
    background: linear-gradient(205deg, #6491d9 0%, #3458b2 100%);
  }
}
</style>
